package com.zhuliwei.controller;

import com.zhuliwei.domain.ResponseResult;
import com.zhuliwei.service.LinkService;
import io.swagger.annotations.Api;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 友链接口控制层
 *
 * @author 朱力维
 * @time 2022/10/9 11:45
 **/
@RestController
@RequestMapping("/link")
@Api(tags="友链",description = "友链相关接口")
public class LinkController {
    @Resource
    LinkService linkService;

    /**
     * 查询所有友链
     *
     * @return
     */
    @GetMapping("getAllLink")
    public ResponseResult getAllLink(){
        return linkService.getAllLink();
    }
}
